
package at.dcmspl;

import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Hannes Stornig, Gosch Daniel
 */
@Remote
public interface DcmQueueServiceRemote {

    void createDcmQueue(String name);

    void addDcmFile(String dcmQueueName, String dcmFileName);

    public DcmQueueSimple findDcmQueue(Object id);

    public void removeDcmQueue(DcmQueueSimple entity);

    public void updateDcmQueue(DcmQueueSimple entity);

    public void createDcmQueue(DcmQueueSimple dcmqueue);

    public DcmQueueSimple addDcmFile(DcmQueueSimple dcmqueue, String dcmfilename);

    public DcmQueueSimple removeDcmFile(DcmQueueSimple dcmqueue, DcmFile dcmFile);
    
    public DcmFile poolDcmFile(DcmQueueSimple dcmqueue);
    
    public DcmFile peekDcmFile(DcmQueueSimple dcmqueue);
    
    public void remove(DcmQueueSimple dcmqueue);
    
    public DcmFile elementAt(DcmQueueSimple dcmqueue,int Index);
    
    public DcmFile movetoHead(DcmQueueSimple dcmqueue, int index);

    public long count();

    public DcmQueueSimple getFirst();

    public List<DcmQueueSimple> findAll();

    public DcmQueueSimple findDcmQueueByName(String name);
    
}
